package bookmanagement.user;

import bookmanagement.book.BookList;
import bookmanagement.operation.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] operations;
    // 根据用户输入执行相应操作
    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        operations[choice - 1].work(bookList);
    }
}
